﻿using Newtonsoft.Json.Converters;


public class DateFormatConverter : IsoDateTimeConverter
{
    public DateFormatConverter()
    {
        DateTimeFormat = "yyyy-MM-dd";
    }

    public DateFormatConverter(string format)
    {
        if (string.IsNullOrWhiteSpace(format)) format = "yyyy-MM-dd";
        DateTimeFormat = format;
    }
}

